package com.xiaoy.page;

import java.util.List;

import org.springside.modules.orm.PropertyFilter;

import com.xiaoy.util.store.Templatekeys;
import com.xiaoy.util.store.VariableStore;


public class PageWrapper<T> extends PageSimple<T>{

	
	private Object resultData;
	
	public PageWrapper () {
		
		this.pageSize = VariableStore.getIntValue(Templatekeys.Pagination.PAGESIZE);
	}
	
	public PageWrapper (int pagesize) {
		this.pageSize = pagesize;
	}
	
	public PageWrapper (List<PropertyFilter> filters) {
		this.paramFilters = filters;
	}
	
	public void addParamFilters (PropertyFilter filter) {
		paramFilters.add(filter);
	}
	
	public List<PropertyFilter> getParamFilters() {
		return paramFilters;
	}

	public void setParamFilters(List<PropertyFilter> paramFilters) {
		this.paramFilters = paramFilters;
	}

	public Object getResultData() {
		return resultData;
	}

	public void setResultData(Object resultData) {
		this.resultData = resultData;
	}

	public List<T> getRows() {
		return result;
	}

	public void setRows(List<T> rows) {
		this.result = rows;
	}
}
